package com.example.tse.rbhttpservice.service.member.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.member.model.MemberMessageGetMomentList;
/**
 * 获取我的发现消息［帖子中评论我的、回复我的评论，点赞消息］，点击跳转到帖子详情，每点击都需要更新
 * @author wliu
 * edit tse
 */
public class MemberMessageGetMomentListResponse extends RudderResponse{
    
    private List<MemberMessageGetMomentList> getMomentList = new ArrayList<MemberMessageGetMomentList>();
		
	
    /**
     * @return getMomentList
     */	
    public List<MemberMessageGetMomentList> getGetMomentList() { 
	    return this.getMomentList;
    };
	
	/**
     * @return getMomentList
     */	
    public void setGetMomentList(List<MemberMessageGetMomentList> getMomentList) { 
        this.getMomentList = getMomentList;
    };
    
	
        
    private static void filterFor(MemberMessageGetMomentList member) {
        if (member.getCommentId() == null) {
            member.setCommentId("");
        }
        if (member.getMemberId() == null) {
            member.setMemberId("");
        }
        if (member.getNickname() == null) {
            member.setNickname("");
        }
        if (member.getAvatar() == null) {
            member.setAvatar("");
        }
        if (member.getContent() == null) {
            member.setContent("");
        }
        if (member.getImg() == null) {
            member.setImg("");
        }
        if (member.getCreateTime() == null) {
            member.setCreateTime("");
        }
        if (member.getMomentId() == null) {
            member.setMomentId("");
        }
        if (member.getLikeId() == null) {
            member.setLikeId("");
        }
    }
        
    public static void filter(MemberMessageGetMomentListResponse member) {
        if (member.getGetMomentList() == null) {
            member.setGetMomentList(new ArrayList<MemberMessageGetMomentList>());
        } else {
            for (MemberMessageGetMomentList item : member.getGetMomentList()) {
                filterFor(item);
            }
        }
    }
}
